#pragma once
#include "dataformat.h"

#pragma pack(1)
typedef struct _H3C_FORMAT_NORMAL
{
    u_char ucFormatType[2];
	char   cDataType;
	char   cConnSerial;
	char   Temp1[3];
	u_char cLength;
	u_char ucApMac[6]; //(8-13)
    char   Temp2[18];
    u_char ucRssi;      //32
    char   Temp3[7];
	u_char ucTagMac[6]; //(40-45)
    char   Temp4[2];
	u_char ucTimeFlag48;
	u_char ucTimeFlag49;
    char   Temp5[7];
	u_char cAlarmFlag;  //57
	char   Temp6[6];
}H3C_FORMAT_NORMAL,*LPH3C_FORMAT_NORMAL;

#pragma pack(1)
typedef struct _H3C_FORMAT_CONN
{
	u_char ucFormatType[2];
	char   cDataType;
	char   cConnSerial;
	char   Temp1[3];
	u_char cLength;
	u_char ucApMac[6]; //(8-13)

}H3C_FORMAT_CONN,*LPH3C_FORMAT_CONN;

#pragma pack(1)
typedef struct _H3C_FORMAT_T4ALARM
{
	u_char ucFormatType[2];
	char   cDataType;
	char   cConnSerial;
	char   Temp1[3];
	u_char cLength;
	u_char ucTagMac[6]; //(8-13)
	char   Temp2[43];
	u_char cAlarmFlag;  //57
	char   Temp6[12];
	char   Content[13];
}H3C_FORMAT_T4ALARM,*LPH3C_FORMAT_T4ALARM;

#pragma pack(1)
typedef struct _H3C_FORMAT_T2ALARM
{
	u_char ucFormatType[2];
	char   cDataType;
	char   cConnSerial;
	char   Temp1[3];
	u_char cLength;
	u_char ucTagMac[6]; //(8-13)
	char   Temp2[43];
	u_char cAlarmFlag;  //57
	char   Temp6[6];
	char   Content[2];
}H3C_FORMAT_T2ALARM,*LPH3C_FORMAT_T2ALARM;



class CH3CDataFormat :
	public CDataFormat
{
public:
	CH3CDataFormat(void);
	~CH3CDataFormat(void);
};
